package designMode.actionMode.iterator;

/**
 * Created by Administrator on 2018/4/14.
 */
public class IteratorTest {

    public static void main(String[] args) {

        Collection collection = new MyCollection();
        Iterator it = collection.iterator();

        while (it.hasNext()) {
            System.out.println(it.next());
        }

    }
}
